package org.example.mall.Service;

import org.example.mall.Pojo.ConsigneeInfo;

import java.util.List;
import java.util.Map;

public interface ConsigneeInfoService {
    //获取收货人列表
    List<ConsigneeInfo> getConsigneeListByUserName(String userName);
    ConsigneeInfo getConsigneeByCId(Integer cId);
    //收货人信息增删改
    void createConsignee(String userName, String consigneeName, String consigneePhone, String consigneeAddress);
    void createConsignee(String userName, String consigneeName, String consigneePhone, String consigneeAddress, String areaCode);
    void deleteConsignee(Integer cId);
    void updateToNoUserNameConsignee(Integer cId);
    void updateConsignee(Integer cId, Map<String, String> updateDate);
}
